import http from '@/utils/axios';

// 获取列表数据
export const getFileCateListApi = (params: any) => {
    return http({
        method: 'get',
        url: '/file_cate/index',
        params,
    });
};

// 获取数据
export const getFileCateInfoApi = (id: number) => {
    return http({
        method: 'GET',
        url: `/file_cate/read/${id}`,
    });
};

// 新增数据
export const saveFileCateInfoApi = (data: any) => {
    return http({
        method: 'POST',
        url: `/file_cate/save`,
        data,
    });
};

// 更新数据
export const updateFileCateInfoApi = (id: number, data: any) => {
    return http({
        method: 'PUT',
        url: `/file_cate/update/${id}`,
        data,
    });
};

// 删除数据
export const deleteFileCateInfoApi = (id: number) => {
    return http({
        method: 'DELETE',
        url: `/file_cate/delete/${id}`,
    });
};